# coding=utf-8

import sympy
try:
    bol = input("请输入一个单字符未知数: ")
except:
    print("这不是一个单字符未知数。")

equal = input("请输入一个等式，未知数用{}代替: ")
Equal = equal.replace("{}",bol)
answer = sympy.slove(Equal,bol)
print(answer)